package org.example.B2;

public enum State {
    Reading("Reading","读取输入字符状态"),
    Comparing("Coparing","验证密码状态"),
    Locked("Locked","锁定控制面板状态"),
    Selecting("Selecting","系统功能选择状态");
    private String name;
    private String value;
    State(String name, String value) {
        this.name = name;
        this.value = value;
    }
    public String getName() {
        return this.name;
    }

    public String getValue() {
        return value;
    }

    @Override
    public String toString() {
        return "State{" +
                "name='" + name + '\'' +
                ", value='" + value + '\'' +
                '}';
    }
}
